package com.dcits.electronic_account.service;

import com.dcits.electronic_account.bean.VirtualBank;
import com.dcits.electronic_account.dto.BindingBankDTO;
import com.dcits.electronic_account.dto.CancelBindingDTO;
import com.dcits.electronic_account.vo.BindingRelationsVO;

import java.util.List;
import java.util.Map;

public interface VirtualBankService {

    /**
     * 用户绑卡操作
     */
    Map<String,String> bindingBankCard(BindingBankDTO bindingBankDTO);

    /**
     * 检验是否已经绑过此卡
     * @param bindingBankDTO
     * @return true 未绑定 false 已绑定
     */
    boolean checkBinding(BindingBankDTO bindingBankDTO);

    /**
     * 取消绑卡
     * @param cancelBindingDTO
     * @return
     */
    Integer cancelBinding(CancelBindingDTO cancelBindingDTO);

    /**
     * 查询用户绑卡列表
     * @param userId
     * @return
     */
    List<BindingRelationsVO> existBank(Integer userId);
}
